package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.query.MenuQuery;
import java.util.List;

public interface MenuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Menu record);

    Menu selectByPrimaryKey(Long id);

    List<Menu> selectAll();

    int updateByPrimaryKey(Menu record);

    // 查询根菜单
    List<Menu> selectRootMenu();

    List<Long> selectByRoleId(Long id);

    List<Long> selectByEmployeeId(Long id);

    List<Menu> queryForMenu(MenuQuery qo);

    void deleteChildByParentId(Long id);
}